#!/bin/bash

CC_PREFIX=/opt/loongarch64-linux-gnu-2021-06-19-vector
export PATH=$CC_PREFIX/bin:$PATH
export LD_LIBRARY_PATH=/opt/elf_lib:$CC_PREFIX/lib:$LD_LIBRARY_PATH
export LD_LIBRARY_PATH=$CC_PREFIX/loongarch64-linux-gnu/lib/:$LD_LIBRARY_PATH

export CROSS_COMPILE=loongarch64-linux-gnu-
export ARCH=loongarch


if [ -z $1 ]; then
  make

elif [ $1 = "build" ]; then
  make

elif [ $1 = "clean" ]; then
  make clean

fi


